package com.atguigu.gmall.pms.vo;

import com.atguigu.gmall.pms.entity.SpuAttrValueEntity;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @author liuxing
 * @create 2022-09-03 15:07
 */
@Data
public class SpuBaseAttrVo extends SpuAttrValueEntity {

    private List<String> valueSelected;

    public void setValueSelected(List<String> valueSelected) {
        String join = StringUtils.join(valueSelected, ",");
        setAttrValue(join);
    }
}
